﻿using System;
using Microsoft.EntityFrameworkCore.Migrations;

#nullable disable

namespace Business.Migrations
{
    public partial class add_WarehouseLocation : Migration
    {
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.CreateTable(
                name: "WarehouseLocation",
                columns: table => new
                {
                    Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
                    TenantId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
                    PCode = table.Column<string>(type: "nvarchar(max)", nullable: true),
                    Code = table.Column<string>(type: "nvarchar(max)", nullable: false),
                    LocationType = table.Column<string>(type: "nvarchar(max)", nullable: true),
                    LocationHeight = table.Column<string>(type: "nvarchar(max)", nullable: false),
                    LocationLength = table.Column<string>(type: "nvarchar(max)", nullable: false),
                    LockPriority = table.Column<string>(type: "nvarchar(max)", nullable: false),
                    UsedVolume = table.Column<string>(type: "nvarchar(max)", nullable: true),
                    LocationWidth = table.Column<string>(type: "nvarchar(max)", nullable: false),
                    UsePattern = table.Column<string>(type: "nvarchar(max)", nullable: true),
                    UsedLoadBearing = table.Column<string>(type: "nvarchar(max)", nullable: true),
                    LoadBearing = table.Column<string>(type: "nvarchar(max)", nullable: false),
                    PriorityGoods = table.Column<string>(type: "nvarchar(max)", nullable: true),
                    LocationVolume = table.Column<string>(type: "nvarchar(max)", nullable: false),
                    IsMixing = table.Column<string>(type: "nvarchar(max)", nullable: true),
                    PathPriority = table.Column<string>(type: "nvarchar(max)", nullable: true),
                    ExclusionHistory = table.Column<string>(type: "nvarchar(max)", nullable: true),
                    GoodsShelf = table.Column<string>(type: "nvarchar(max)", nullable: true),
                    Layer = table.Column<string>(type: "nvarchar(max)", nullable: true),
                    Laneway = table.Column<string>(type: "nvarchar(max)", nullable: true),
                    ExclusionMargin = table.Column<string>(type: "nvarchar(max)", nullable: true),
                    Place = table.Column<string>(type: "nvarchar(max)", nullable: true),
                    LocationException = table.Column<string>(type: "nvarchar(max)", nullable: true),
                    LocationLabel = table.Column<string>(type: "nvarchar(max)", nullable: true),
                    IsDeleted = table.Column<bool>(type: "bit", nullable: false, defaultValue: false),
                    ExtraProperties = table.Column<string>(type: "nvarchar(max)", nullable: true),
                    ConcurrencyStamp = table.Column<string>(type: "nvarchar(40)", maxLength: 40, nullable: true),
                    CreationTime = table.Column<DateTime>(type: "datetime2", nullable: false),
                    CreatorId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
                    LastModificationTime = table.Column<DateTime>(type: "datetime2", nullable: true),
                    LastModifierId = table.Column<Guid>(type: "uniqueidentifier", nullable: true)
                },
                constraints: table =>
                {
                    table.PrimaryKey("PK_WarehouseLocation", x => x.Id);
                });
        }

        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DropTable(
                name: "WarehouseLocation");
        }
    }
}
